import request from '@/utils/request'

// 查询加工过程列表
export function listProcessingRecord(query) {
  return request({
    url: '/mes/processing/record/list',
    method: 'get',
    params: query
  })
}

// 查询加工过程详细
export function getProcessingRecord(id) {
  return request({
    url: '/mes/processing/record/' + id,
    method: 'get'
  })
}

// 新增加工过程
export function addProcessingRecord(data) {
  return request({
    url: '/mes/processing/record',
    method: 'post',
    data: data
  })
}

// 修改加工过程
export function updateProcessingRecord(data) {
  return request({
    url: '/mes/processing/record',
    method: 'put',
    data: data
  })
}

// 删除加工过程
export function delProcessingRecord(id) {
  return request({
    url: '/mes/processing/record/' + id,
    method: 'delete'
  })
}
